
alter user USER quota 0 on SYSTEM;

create user USERNAME identified by PASSWORD
default tablespace TABLESPACE_NAME;

alter user USERNAME default tablespace TABLESPACE_NAME;

alter index EMPLOYEE$DEPT_NO rebuild
tablespace INDEXES
storage (initial 2M next 2M pctincrease 0);


create table JOB
(Job_Code   NUMBER,
 Descrition VARCHAR2(35),
 constraint JOB_PK primary key (Job_Code)
 using index tablespace INDEXES
 storage (initial 2M next 2M pctincrease 0))
 tablespace DATA
 storage (initial 5M next 5M pctincrease 0);

alter user SYSTEM quota 0 on SYSTEM;
alter user SYSTEM quota 50M on TOOLS;

create user USERNAME identified by PASSWORD
default tablespace DATA
temporary tablespace TEMP;

alter user USERNAME temporary tablespace TEMP;

create user USERNAME identified by PASSWORD
default tablespace USERS
temporary tablespace TEMP;


alter user USERNAME default tablespace USERS;

alter table EMPLOYEE_TYPE
add costraint UNIC_DESCR unique(DESCRIPTION)
using index tablespace INDEXES_2;

alter index JOB_PK rebuild
tablespace INDEXES
storage (initial 2M next 2M pctincrease 0);

set transaction use rolback segment SEGMENT_NAME;

create user USERNAME identified by PASSWORD
default tablespace TABLESPACE_NAME
temporary tablespace TEMP_USER;

alter user USERNAME temporary tablespace TEMP_USER;

